
package net.waste.ics.item;

import net.waste.ics.itemgroup.WasteItemsItemGroup;
import net.waste.ics.IcsModElements;

import net.minecraftforge.registries.ObjectHolder;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.api.distmarker.Dist;

import net.minecraft.util.ResourceLocation;
import net.minecraft.item.Rarity;
import net.minecraft.item.MusicDiscItem;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Item;

@IcsModElements.ModElement.Tag
public class C418Item extends IcsModElements.ModElement {
	@ObjectHolder("ics:c_418")
	public static final Item block = null;

	public C418Item(IcsModElements instance) {
		super(instance, 20);
	}

	@Override
	public void initElements() {
		elements.items.add(() -> new MusicDiscItemCustom());
	}

	public static class MusicDiscItemCustom extends MusicDiscItem {
		public MusicDiscItemCustom() {
			super(0, IcsModElements.sounds.get(new ResourceLocation("ics:c418-eatchicken")),
					new Item.Properties().group(WasteItemsItemGroup.tab).maxStackSize(1).rarity(Rarity.RARE));
			setRegistryName("c_418");
		}

		@Override
		@OnlyIn(Dist.CLIENT)
		public boolean hasEffect(ItemStack itemstack) {
			return true;
		}
	}
}
